The Sum and Number of Divisors (σ and τ) Revisited
Introduction
- Many questions in number theory revolve around divisors of a number.
- Two classical functions help us understand how “divisor‑rich” a number is:
- $τ(n)$ — the number of positive divisors of $n$
- $τ$ is the Greek letter tau, and rhymes with "cow"
- $σ(n)$ — the sum of all positive divisors of $n$
- $σ$ is the Greek letter sigma
- These functions reveal surprising patterns:
- Why do some numbers have many divisors?
- Why are some numbers “perfect”?
- How does prime factorisation control everything?
This article revisits these ideas with fresh examples and intuition.
Review: Divisors and Prime Factorisation
- A divisor of $n$ is a positive integer that divides $n$ with no remainder.
- Example: divisors of $12$ are $1,2,3,4,6,12$.
- Every positive integer has a unique prime factorisation: $$n = p_1^{a_1} p_2^{a_2} \cdots p_k^{a_k}$$
- Prime factorisation is the key to understanding $τ(n)$ and $σ(n)$.
The Functions τ(n) and σ(n): Definitions and First Examples
- Number of divisors:
- $τ(n)$ counts how many positive divisors $n$ has.
- Example: $τ(12)=6$.
- Sum of divisors:
- $σ(n)$ adds all positive divisors.
- Example: $σ(12)=1+2+3+4+6+12=28$.
- Quick examples:
- $τ(7)=2$ (prime numbers have exactly two divisors)
- $σ(7)=1+7=8$
How Prime Factorisation Controls Divisors
- If $n = p_1^{a_1} p_2^{a_2} \cdots p_k^{a_k}$:
- Each divisor is formed by choosing an exponent for each prime:
- For $p_1$: choose $0,1,\dots,a_1$
- For $p_2$: choose $0,1,\dots,a_2$
- …
- This leads to:
- $(a_1+1)$ choices for the first prime
- $(a_2+1)$ choices for the second prime
- …
- Multiply the choices to count all divisors.
Formulas for τ(n) and σ(n)
Number of divisors
If $$n = p_1^{a_1} p_2^{a_2} \cdots p_k^{a_k},$$ then $$τ(n) = (a_1+1)(a_2+1)\cdots(a_k+1).$$
Sum of divisors
For a single prime power: $$σ(p^a) = 1 + p + p^2 + \cdots + p^a.$$ This is a geometric series: $$σ(p^a) = \frac{p^{a+1}-1}{p-1}.$$ For a general $n$: $$σ(n) = σ(p_1^{a_1}) \, σ(p_2^{a_2}) \cdots σ(p_k^{a_k}).$$
Working Through Examples Step by Step
Example 1: $n=18$
- Factorisation: $18 = 2^1 \cdot 3^2$
- Number of divisors:
- $τ(18) = (1+1)(2+1) = 2 \cdot 3 = 6$
- Sum of divisors:
- $σ(2^1)=1+2=3$
- $σ(3^2)=1+3+9=13$
- $σ(18)=3 \cdot 13 = 39$
Example 2: $n=72$
- Factorisation: $72 = 2^3 \cdot 3^2$
- $τ(72) = (3+1)(2+1) = 4 \cdot 3 = 12$
- $σ(2^3)=1+2+4+8=15$
- $σ(3^2)=1+3+9=13$
- $σ(72)=15 \cdot 13 = 195$
Multiplicativity of σ and τ
Both $σ$ and $τ$ are multiplicative functions, meaning:
- If $\gcd(a,b)=1$, then $$τ(ab)=τ(a)\,τ(b),$$ $$σ(ab)=σ(a)\,σ(b).$$
This is not true if $a$ and $b$ share a prime factor.
Why multiplicativity holds:
- Divisors of $ab$ correspond to pairs of divisors $(d_1,d_2)$ with $d_1\mid a$ and $d_2\mid b$.
- When $a$ and $b$ are coprime, these pairs uniquely describe all divisors.
Why Multiplicativity Matters
- It allows fast computation of $σ(n)$ and $τ(n)$ from prime factorisation.
- It explains why numbers with many small prime factors tend to have many divisors.
- It helps classify special types of numbers (perfect, abundant, highly composite).
Behaviour of σ(n): Abundant, Perfect, and Deficient Numbers
Using the sum of proper divisors: $$s(n) = σ(n) - n.$$ We classify numbers:
- Perfect: $s(n)=n$
- Abundant: $s(n)>n$
- Example: $12$ (proper divisors sum to $16$)
- Deficient: $s(n)<n$
- Example: $8$ (proper divisors sum to $7$)
Patterns:
- Powers of primes are always deficient.
- Numbers with many small prime factors tend to be abundant.
Behaviour of τ(n): Highly Composite and Related Ideas
- $τ(n)$ measures how “divisor‑rich” a number is.
- A highly composite number is a number with more divisors than any smaller number.
- Examples: $1,2,4,6,12,24,36,48,60,120,\dots$
- These numbers tend to:
- Use small primes
- Use exponents in decreasing order (e.g., $2^3 3^2 5^1$)
Comparing Growth Rates of σ(n) and τ(n)
- $τ(n)$ grows slowly; even very large numbers rarely have more than a few thousand divisors.
- $σ(n)$ grows faster because it adds divisors, not just counts them.
- Rough intuition:
- $τ(n)$ is usually around the size of a small power of $\log n$.
- $σ(n)$ is often a bit larger than $n$, but can be much larger for numbers with many small prime factors.
Common Pitfalls and Misconceptions
- Forgetting that $σ$ and $τ$ are multiplicative only for coprime arguments.
- Thinking $σ(n)$ is always larger than $n$ (false for deficient numbers).
- Assuming prime numbers have $τ(p)=1$ (they have $2$ divisors).
- Forgetting to include the exponent $0$ when counting divisors.
Summary and Key Takeaways
- $τ(n)$ counts divisors; $σ(n)$ sums them.
- Prime factorisation completely determines both functions.
- Both functions are multiplicative for coprime inputs.
- $σ(n)$ helps classify numbers as perfect, abundant, or deficient.
- $τ(n)$ highlights numbers with unusually many divisors.
Calculator
divisors(n)
- Returns a list of all positive divisors of $n$.
divisors(12) divisors(18)
sumDivisors(n)
- Returns the sum of all positive divisors of $n$ (the function $\sigma(n)$).
sumDivisors(12) sumDivisors(18)
sumProperDivisors(n)
- Returns the sum of all proper divisors of $n$ (all divisors except $n$ itself).
sumProperDivisors(12) sumProperDivisors(18)
numDivisors(n)
- Returns the number of positive divisors of $n$.
numDivisors(12) numDivisors(18)
Exercises
- Compute $τ(45)$ and $σ(45)$.
- Compute $τ(84)$ and $σ(84)$.
- Compute $σ(2^5)$ and $σ(3^3)$ using the geometric‑series formula.
- Determine whether $n=20$ is perfect, abundant, or deficient.
- S Determine whether $n=28$ is perfect, abundant, or deficient.
- Explain why $τ(p^k)=k+1$ for any prime $p$.
- Explain why $σ(p^k)=\frac{p^{k+1}-1}{p-1}$.
- Why do numbers with many small prime factors tend to have many divisors?
- Give an example of two numbers $a$ and $b$ where $τ(ab)\neq τ(a)τ(b)$ and explain why.
- Find a number between $1$ and $100$ that has the largest value of $τ(n)$.